<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>输入数据</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
输入页面：<br>
	<s:form action="showArray" method="post">
		<!-- 数组类型 -->
		<s:textfield name="numbers" label="number1"></s:textfield>
		<s:textfield name="numbers" label="number2"></s:textfield>
		<s:textfield name="numbers" label="number3"></s:textfield>
		<s:textfield name="numbers" label="number4"></s:textfield>
		
		<!-- List类型 -->
		<s:textfield name="hobbies" label="爱好1"></s:textfield>
		<s:textfield name="hobbies" label="爱好2"></s:textfield>
		<s:textfield name="hobbies" label="爱好3"></s:textfield>
		<s:textfield name="hobbies" label="爱好4"></s:textfield>
		
		<!-- List<user>类型 -->
		<s:textfield name="users[0].name" label="用户1"></s:textfield>
		<s:textfield name="users[1].name" label="用户2"></s:textfield>
		<s:textfield name="users[2].name" label="用户3"></s:textfield>
		<s:textfield name="users[3].name" label="用户4"></s:textfield>
		
		<!-- Data类型 -->
		<s:textfield name="timeData" label="日期格式"></s:textfield>
		
		<s:submit value="提交"></s:submit>
	</s:form>
</body>
</html>
